Get Cards by User
Cards
Get Cards by User
Retrieve all cards associated with a customer
GET
Get Cards by User
Retrieves a list of all cards (payment sources) associated with a specific customer. This is useful for displaying saved payment methods to users.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/peLuis123/Stripe_Back/llms.txt
Use this file to discover all available pages before exploring further.
Path Parameters
The Stripe customer ID. Must start with
cus_.Example: "cus_QRs9eKZ4xUzN2TP9"Response
Indicates if the request was successful (
true) or failed (false).Human-readable message describing the result.Example:
"Tarjetas listadas correctamente"Array of card objects associated with the customer. Limited to 10 cards.
Example Request
Example Response
Display Cards to Users
Example of displaying saved cards in a user interface:React
Pagination
The API limits results to 10 cards by default. If a customer has more than 10 cards, you may need to implement pagination (though this is rare in practice).Security Best Practice: Only show the last 4 digits and brand to users. Never expose full card numbers, even if you have access to them.
Card Verification Status
Cards in the response include verification fields:cvc_check: Result of CVC verification (pass,fail,unavailable, orunchecked)address_zip_check: Result of ZIP code verification (pass,fail,unavailable, orunchecked)address_line1_check: Result of address verification